export interface BriefParam {
  id?: number;
  phaseTaskId?: number;
  periodicTaskId?: number;
  brief: string;
  subject: string;
  createTime?: string;
}

export class Brief {
  id?: number;
  phaseTaskId?: number;
  periodicTaskId?: number;
  brief: string;
  subject: string;
  createTime?: Date;
  constructor(param: BriefParam) {
    this.id = param.id;
    this.phaseTaskId = param.phaseTaskId;
    this.brief = param.brief;
    this.subject = param.subject;
    this.createTime = param.createTime ? new Date(param.createTime) : undefined;
    this.periodicTaskId = param.periodicTaskId;
  }
}
